all:main clean


main:main.o lcd_draw.o keyboard.o tankmove.o aiTank_map.o gbtest.o
	arm-linux-gcc -o main main.o lcd_draw.o keyboard.o tankmove.o aiTank_map.o gbtest.o -L. -liconv

lcd_draw.o:lcd_draw.c
	arm-linux-gcc -c lcd_draw.c

keyboard.o:keyboard.c
	arm-linux-gcc -c keyboard.c
	
tankmove.o:tankmove.c
	arm-linux-gcc -c tankmove.c

aiTank_map.o:aiTank_map.c
	arm-linux-gcc -c aiTank_map.c

gbtest.o:gbtest.c
	arm-linux-gcc -L. -c gbtest.c -liconv

main.o:main.c
	arm-linux-gcc -c main.c



clean:
	rm -f *.o

